<?php include(__SITE_PATH.DS.'views/include/head.php'); ?>
<body>
<div id="wrappage">
    <div id="header" class="left">
        <?php include(__SITE_PATH.DS.'views/include/header.php');?>
    </div><!--End div.header-->
    <div id="container" class="left">
        <?php include(__SITE_PATH.DS.'views/include/sidebar.php');?>
        <div class ="content-right right">
			<?php if(isset($notice)) echo '<div class="error"><p>'.$notice.'</p></div>';?>
			<?php if(isset($success)) echo '<div class="success"><p>'.$success.'</p></div>';?>
            <form method="post" action="<?php echo BASE_URL;?>nguoidung/capnhatthongtin/<?php $_SESSION['nguoi_dung_da_login']?>">
				<div class="accountInfo">
					<h2>Cập nhật thông tin người dùng</h2>
					<fieldset class="login">
						<legend>Cập nhật thông tin người dùng</legend>
						<table class="adduser" border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td>
								<label>Tên đăng nhập</label>
							</td>
							<td>
								<input type="text" value="<?php echo $_SESSION['nguoi_dung_da_login'];?>" name="txtusername" readonly="true" class="textEntry" width="200px"/>
							</td>
						</tr>
						<tr>
							<td>
							<label>Mật khẩu cũ</label>
							</td>
							<td>
								<input type="password" name="txtoldpass" class="PasswordEntry" width="200px"/>
							</td>
						</tr>
						<tr>
							<td>
							<label>Mật khẩu mới</label>
							</td>
							<td>
								<input type="password" name="txtpassword" class="PasswordEntry" width="200px"/>
							</td>
						</tr>
						<tr>
							<td>
							<label>Nhập lại mật khẩu mới</label>
							</td>
							<td>
								<input type="password" name="txtpasswordconf" class="PasswordEntry" width="200px"/>
							</td>
						</tr>
						<tr>
							<td>
								<label>Họ tên người dùng</label>
							</td>
							<td>
								<input type="text" name="txtfullname" class="textEntry" width="200px"/>
							</td>
						</tr>
						<tr>
							<td>
								<label>Email</label>
							</td>
							<td>
								<input type="text" name="txtemail" value="Không cho đổi email" class="textEntry" width="200px" readonly="true"/>
							</td>
						</tr>
						<tr>
							<td>
								<label>Điện thoại</label>
							</td>
							<td>
								<input type="text" name="txtphone" class="textEntry" width="200px"/>
							</td>
						</tr>
						<tr>
							<td>
								<label>Địa chỉ</label>
							</td>
							<td>
								<input type="text" name="txtdiachi" class="textEntry" width="200px"/>
							</td>
						</tr>
						</table>
					</fieldset>
					<p class="submitButton">
						<input type="submit" name="btnupdate" id="btnupdate" value="Cập nhật" />
						<input type="reset" name="btnreset" id="btnreset" value="Nhập lại" />
					</p>
				</div>
            </form>
        </div>            
    </div><!--End div.container-->
    <div class="clear"></div>
    <div id="footer" class="left">
        <?php include(__SITE_PATH.DS.'views/include/footer.php');?>
    </div><!--End div.footer-->
</div><!--End div#wrappage-->
</body>
</html>